﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.ComponentModel.Composition;

namespace EIA.SLClient.ProjectManage
{
	/// <summary>
	/// ChangePasswordView.xaml 的交互逻辑
	/// </summary>
    [Export]
	public partial class ChangePasswordView : UserControl
	{
		public ChangePasswordView()
		{
			this.InitializeComponent();
		}

        private ChangePasswordViewModel VM { get { return this.LayoutRoot.DataContext as ChangePasswordViewModel; } }

		private void old_PasswordChanged(object sender, System.Windows.RoutedEventArgs e)
		{
            VM.OldPassword = old.Password;
		}

		private void new_0_PasswordChanged(object sender, System.Windows.RoutedEventArgs e)
		{
            VM.New0Password = new_0.Password;
		}

		private void new_1_PasswordChanged(object sender, System.Windows.RoutedEventArgs e)
		{
            VM.New1Password = new_1.Password;
		}
	}
}